﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="ihongma.Web.UI.Page.article_show" ValidateRequest="false" %>
<%@ Import namespace="System.Collections.Generic" %>
<%@ Import namespace="System.Text" %>
<%@ Import namespace="System.Data" %>
<%@ Import namespace="ihongma.Common" %>

<script runat="server">
override protected void OnInit(EventArgs e)
{

	/* 
		This page was created by ihongma Template Engine at 2014/4/1 20:02:49.
		本页面代码由ihongma模板引擎生成于 2014/4/1 20:02:49. 
	*/

	base.OnInit(e);
	StringBuilder templateBuilder = new StringBuilder(220000);
	templateBuilder.Append("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n<!--[if IE 6 ]><html class=\"ie6\"><![endif]-->\r\n<!--[if IE 7 ]><html class=\"ie7\"><![endif]-->\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n<title>");
	templateBuilder.Append(Utils.ObjectToStr(config.webtitle));
	templateBuilder.Append("</title>\r\n<meta content=\"");
	templateBuilder.Append(Utils.ObjectToStr(config.webkeyword));
	templateBuilder.Append("\" name=\"keywords\" />\r\n<meta content=\"");
	templateBuilder.Append(Utils.ObjectToStr(config.webdescription));
	templateBuilder.Append("\" name=\"description\" />\r\n\r\n\r\n\r\n\r\n\r\n  <!--css-->\r\n");

	templateBuilder.Append("<link rel=\"stylesheet\" href=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/css/style.css\" type=\"text/css\"\r\nmedia=\"screen\" />\r\n<link rel=\"stylesheet\" media=\"screen and (max-width:991px)\" href=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/css/max991.css\"\r\n/>\r\n<link rel=\"stylesheet\" media=\"screen and (max-width:479px)\" href=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/css/max479.css\"\r\n/>\r\n\r\n<link rel=\"stylesheet\" href=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/css/nivo-slider.css\" type=\"text/css\" media=\"screen\" />\r\n<script src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/js/jquery-1.10.2.min.js\"></");
	templateBuilder.Append("script>\r\n\r\n<!--[if lt IE 8]>\r\n    <script type=\"text/javascript\" src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/js/DD_belatedPNG_0.0.8a-min.js\">\r\n    </");
	templateBuilder.Append("script>\r\n    <script>\r\n        DD_belatedPNG.fix(\"h1, a, h2, h3, img,.fixpng,.videos li\");\r\n    </");
	templateBuilder.Append("script>\r\n<![endif]-->\r\n<!--[if lt IE 9]>\r\n    <script src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/js/html5.js\">\r\n    </");
	templateBuilder.Append("script>\r\n    <script src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/js/css3-mediaqueries.js\">\r\n    </");
	templateBuilder.Append("script>\r\n<![endif]-->");


	templateBuilder.Append("\r\n<!--/css-->\r\n\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/css/ui-lightness/jquery.ui.core.css\">\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/css/ui-lightness/jquery.ui.theme.css\">\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/css/ui-lightness/jquery.ui.datepicker.css\">\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/css/tipsy.css\">\r\n</head>\r\n\r\n<body>\r\n\r\n<div class=\"wrapper\">\r\n  \r\n  <!--Header-->\r\n");

	templateBuilder.Append("<div id=\"header\" class=\"contentHead\">\r\n    <div class=\"center_wrapper\">\r\n      <div class=\"juiceUplogo\">\r\n        <div id=\"lg_indicator\">\r\n      <span class=\"menu_open_button\"><img class=\"button\" src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/images/menu_open_button.jpg\" width=\"76\" height=\"40\" /></span><a href=\"/\"><img src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/images/xhm_logo.jpg\" width=\"95\" height=\"59\"></a>\r\n        </div>\r\n        <div id=\"lg\">\r\n          <a href=\"/\"><img src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/images/juiceUp_logo.gif\"></a>\r\n        </div>\r\n      </div>\r\n    </div>\r\n      \r\n    <div class=\"topLinks\">\r\n      <div class=\"center_wrapper\">\r\n        <div class=\"topNews\">New. 现北京地区支持在线订购，其他城市即将开通，敬请关注。</div>\r\n        <div class=\"language\"><!--<a href=\"#\">English</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"#\" class=\"selected\">中文</a>--></div>\r\n        <div class=\"login\" id=\"menu\">\r\n        <span class=\"tel\"> 客服热线：400-082-5955</span>\r\n      \r\n        <!--  <a href=\"#\">注 册</a>\r\n          <a href=\"#\" id=\"menu\">登 录</a>-->\r\n         \r\n\r\n        </div>\r\n        <script type=\"text/javascript\">\r\n            $.ajax({\r\n                type: \"POST\",\r\n                url: \"");
	templateBuilder.Append(Utils.ObjectToStr(config.webpath));
	templateBuilder.Append("tools/submit_ajax.ashx?action=user_check_login\",\r\n                dataType: \"json\",\r\n                timeout: 20000,\r\n                success: function (data, textStatus) {\r\n                    if (data.status == 1) {\r\n                        $(\"#menu\").append('<a href=\"");
	templateBuilder.Append(linkurl("usercenter","exit"));

	templateBuilder.Append("\">退出</a>');\r\n                        $(\"#menu\").append('<a href=\"");
	templateBuilder.Append(linkurl("usercenter","index"));

	templateBuilder.Append("\">我的JuiceUp</a>');\r\n                    } else {\r\n                        $(\"#menu\").append('<a href=\"");
	templateBuilder.Append(linkurl("register"));

	templateBuilder.Append("\">注册</a>');\r\n                        $(\"#menu\").append('<a href=\"");
	templateBuilder.Append(linkurl("login"));

	templateBuilder.Append("\">登录</a>');\r\n                    }\r\n                }\r\n            });\r\n    </");
	templateBuilder.Append("script>\r\n      </div>\r\n    </div>\r\n      \r\n    <div class=\"nav_wrapper\">\r\n      <div class=\"center_wrapper\">\r\n        <ul id=\"nav\">\r\n          <li><a href=\"#\">清体排毒</a>\r\n          <div class=\"bottombg ml40\">\r\n          <ul >\r\n         \r\n            <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",113));

	templateBuilder.Append("\"> 什么是毒素</a></li>\r\n           <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",112));

	templateBuilder.Append("\">我需要排毒么</a></li>\r\n             \r\n             \r\n          </ul>\r\n          </div>\r\n          </li>\r\n\r\n          <li>\r\n            <a href=\"#\">JuiceUp</a>\r\n            <div class=\"bottombg ml40\">\r\n            <ul >\r\n             \r\n              <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",110));

	templateBuilder.Append("\">最专业的JuiceUp</a></li>\r\n\r\n              <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",111));

	templateBuilder.Append("\">果汁餐单</a></li>\r\n                <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",122));

	templateBuilder.Append("\">冷压技术</a></li>\r\n              <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",126));

	templateBuilder.Append("\">温馨提示</a></li>\r\n               <span class=\"bottombg\"></span>\r\n             \r\n            </ul>\r\n            </div>\r\n          </li>\r\n          <li>\r\n            <a href=\"#\">选择您的果汁</a>\r\n            <div class=\"bottombg ml22\">\r\n            <ul >\r\n           \r\n              <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",114));

	templateBuilder.Append("\">level1美味纤体系列</a></li>\r\n              <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",115));

	templateBuilder.Append("\">level2深层清体系列</a></li>\r\n             \r\n              \r\n             <!-- <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",117));

	templateBuilder.Append("\">个性化搭配</a></li>-->\r\n              <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",123));

	templateBuilder.Append("\">在线测试</a></li>\r\n              <!--<li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",118));

	templateBuilder.Append("\">排毒疗程</a></li>-->\r\n              <span class=\"bottombg\"></span>\r\n            </ul>\r\n            </div>\r\n          </li>\r\n          <li>\r\n            <a href=\"#\">价格及配送</a>\r\n            <div class=\"bottombg ml30\">\r\n            <ul >\r\n          \r\n              <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",119));

	templateBuilder.Append("\">价格&优惠</a></li>\r\n              <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",121));

	templateBuilder.Append("\">物流配送</a></li>\r\n              <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",120));

	templateBuilder.Append("\">订购须知</a></li>\r\n              <span class=\"bottombg\"></span>\r\n            </ul>\r\n            </div>\r\n          </li>\r\n          <li><a href=\"");
	templateBuilder.Append(linkurl("feedback"));

	templateBuilder.Append("\">联系我们</a></li>\r\n       \r\n        </ul>\r\n        <!--\r\n        <div class=\"cart\"><a href=\"");
	templateBuilder.Append(linkurl("goods"));

	templateBuilder.Append("\"><i>立即订购</i><span class=\"iconCart\"></span></a></div>\r\n        -->\r\n        <div class=\"cart\" id=\"cartTop\">\r\n          <a href=\"");
	templateBuilder.Append(linkurl("goods"));

	templateBuilder.Append("\"><span number=\"0\" class=\"cartimg1\"></span></a>\r\n        </div>\r\n        <div class=\"cart_pad\"><a href=\"");
	templateBuilder.Append(linkurl("goods"));

	templateBuilder.Append("\">立即订购</a></div>\r\n      </div>\r\n    </div>\r\n  </div>");


	templateBuilder.Append("\r\n<!--/Header-->\r\n   \r\n  \r\n  <div id=\"page_modules\">\r\n    \r\n    <div class=\"center_wrapper center_lineGreen clearfix\">\r\n      <div class=\"left_con_m\">\r\n        <div class=\"tile_left_m\">\r\n          <div class=\"tile_zh\">订购您的排毒计划！</div>\r\n          <div class=\"tile_en\"><em class=\"black\">Order</em><em class=\"darkGreen\"> YOUR</em><em class=\"lightGreen\">JUICEUP</em></div>\r\n        </div>\r\n        \r\n        <div class=\"order_warp\">\r\n        \r\n            <div class=\"order_step\">\r\n              <ul>\r\n              <li class=\"selected\">第一步：计划开始日期</li>\r\n              <li>第二步：确认</li>\r\n              <li>第三步：付款</li>\r\n              </ul>\r\n            </div>\r\n            <div class=\"order_selected\">\r\n              <span class=\"tile\">您当前选择的是</span>\r\n              <span class=\"info\"><em>");
	templateBuilder.Append(Utils.ObjectToStr(model.title));
	templateBuilder.Append("</em>");
	templateBuilder.Append(Utils.ObjectToStr(model.content));
	templateBuilder.Append("</span>\r\n            </div>\r\n            <div class=\"order_days\">\r\n              <span class=\"tile\">选择清体计划理想天数：</span>\r\n              <ul class=\"order_days_select\">\r\n                <li><a href=\"javascript:void(0);\"  class=\"tip\" title=\"JuiceUp建议排毒周期：<br/>每周排毒1次，每次1日\" onClick=\"test(1)\" >1</a></li>\r\n                <li><a href=\"javascript:void(0);\"  class=\"tip selected\" title=\"JuiceUp建议排毒周期：<br/>每月排毒1次，每次连续3日\"  onClick=\"test(3)\" >3</a></li>\r\n           <!--     <li><a href=\"javascript:void(0);\" onClick=\"test(5)\" >5</a></li>\r\n                <li><a href=\"javascript:void(0);\" onclick=\"test(7)\" >7</a></li>-->\r\n              </ul>\r\n            </div>\r\n            \r\n            <div class=\"order_time_start clearfix\">\r\n              <span class=\"tile\">请选择排毒开始日期</span>\r\n              <div class=\"order_time_Date\">\r\n                <div id=\"datepicker\"></div>\r\n              </div>\r\n            </div> \r\n             \r\n            <div class=\"order_time_week\">\r\n                <a class=\"previous\" id=\"previousweek\" onClick=\"previousWeek();\">&lt;上一周</a>\r\n                <span id=\"showdate\"></span>\r\n                <a class=\"next\" onClick=\"nextWeek();\">下一周&gt;</a>\r\n            </div>\r\n            <!--显示日期-->\r\n            <div class=\"myOrderCalendarWarp\">\r\n              <div id=\"mytable\" class=\"myOrderCalendar\"></div>\r\n            </div>\r\n            \r\n        </div>\r\n        \r\n      </div>\r\n      <div class=\"right_con_m\">\r\n        <p class=\"hotLineRight\">欢迎拨打<br />JuiceUp 客服热线：<br />400-082-5955</p>\r\n        <div class=\"orderConf\">\r\n          <h5>确认您的订单：</h5>\r\n          <div class=\"price\">产品：¥ <span id=\"price\"></span> RMB</div>\r\n          <div class=\"shipping\">运费：¥ 0 RMB</div>\r\n          <div class=\"total\">总价：¥ <span id=\"price1\"></span> RMB</div>\r\n          <div class=\"btn_next\"><a href=\"javascript:void(0);\" onclick=\"CartAdd(this, '");
	templateBuilder.Append(Utils.ObjectToStr(config.webpath));
	templateBuilder.Append("', 1, '");
	templateBuilder.Append(linkurl("shopping","confirm"));

	templateBuilder.Append("');\">下一步</a></div>\r\n        </div>\r\n               <!--right-->\r\n");

	templateBuilder.Append("\r\n<h4 class=\"darkGreen\">\r\n  温馨提示：\r\n</h4>\r\n<div class=\"reminder_right idTabs\">\r\n  <div class=\"item\">\r\n    <h5>\r\n      <a href=\"javascript:void(0);\" onClick=\"DivSwitch(this)\" >\r\n        订购截止时间\r\n        <span class=\"icon_r\">\r\n        </span>\r\n      </a>\r\n    </h5>\r\n    <div id=\"reminder_item01\" class=\"info\">\r\n   \r\n\r\n\r\n\r\n      <p>\r\n        1.敬请在排毒日前至少2个工作日作出订购。例如您想在星期三开始排毒，则需在星期一12:00pm前订购，我们便会在星期二把果汁送达府上。\r\n      </p>\r\n      <p>\r\n       2.	我们建议您在所选排毒日期前一个星期预定蔬果汁，以确保您有足够的时间阅读并实施“排毒前注意事项”，预先调整饮食习惯，可令疗程的效果更佳显著，也可避免旺季时无法满足您的需求。\r\n      </p>\r\n      <p>3.	为了确保蔬果汁的品质，JuiceUp对蔬果的选材要求极为严苛，所以每日仅限量供应300套，售完即止，敬请谅解。</p>\r\n      <p>4. JuiceUp果汁内没有任何的防腐成分或添加剂，所以为了保证果汁的新鲜品质，请您务必在所选排毒日当日将果汁引用完毕。</p>\r\n    </div>\r\n  </div>\r\n  <div class=\"item\">\r\n    <h5>\r\n      <a href=\"javascript:void(0);\" onClick=\"DivSwitch(this)\">\r\n        更改及取消\r\n        <span class=\"icon_r\">\r\n        </span>\r\n      </a>\r\n    </h5>\r\n    <div id=\"reminder_item02\" class=\"info\">\r\n      <p>\r\n              1.	由于套餐中的每支果汁都是新鲜制作，所以在确认订购后，我们无法接受对果汁系列的任何更改。\r\n      </p>\r\n      <p>\r\n2.	如遇特殊情况需修改排毒日期，请在原定排毒日期前至少2个工作日在系统中进行修改，每次订购仅限一次修改。（需确保修改后的排毒日期距修改当日至少2个工作日）</p>\r\n   <p>3.	订单确认后，我们无法做出任何退款，敬请谅解。</p>\r\n\r\n    </div>\r\n  </div>\r\n  <div class=\"item\">\r\n    <h5>\r\n      <a href=\"javascript:void(0);\" onClick=\"DivSwitch(this)\">\r\n        多人订购优惠方法\r\n        <span class=\"icon_r\">\r\n        </span>\r\n      </a>\r\n    </h5>\r\n    <div id=\"reminder_item03\" class=\"info\">\r\n     <p>  朋友、伴侣、家人、同事，甚至是结婚姐妹团，让大家一起成为排毒拍档吧！\r\n我们欢迎大家以团体形式参与排毒疗程并获得相应优惠。研究及经验表明，在大家相互的鼓励及监督下，排毒过程将变得更富有乐趣也更容易坚持，令人惊喜的是，结伴排毒时，效果也更加显著！\r\n</p>\r\n<p>\r\n3人或以上订购可享有9.5折优惠；<br />\r\n5人或以上订购可享有9折优惠；<br />\r\n8人或以上订购可享有8.5折优惠<br />\r\n(限同一个送货日期、地址及同一系列的排毒果汁)\r\n\r\n   \r\n    \r\n      </p>\r\n    </div>\r\n  </div>\r\n  <!--<div class=\"item\">\r\n    <h5>\r\n      <a href=\"javascript:void(0);\" onClick=\"DivSwitch(this)\">\r\n        索要发票方式\r\n        <span class=\"icon_r\">\r\n        </span>\r\n      </a>\r\n    </h5>\r\n    <div id=\"reminder_item04\" class=\"info\">\r\n      <p>\r\n        们建议您在所选排毒日期前一个星期预定疗程\r\n      </p>\r\n    </div>\r\n  </div>-->\r\n  <div class=\"item\">\r\n   <h5>\r\n      <a href=\"javascript:void(0);\" onClick=\"DivSwitch(this)\">\r\n        礼品卡/优惠卡使用\r\n        <span class=\"icon_r\">\r\n        </span>\r\n      </a>\r\n    </h5>\r\n     <div id=\"reminder_item05\" class=\"info\">\r\n      <p>\r\n        若您有礼品卡代码或优惠卡代码，请直接选购您所需的果汁，只需在支付前输入相应代码即可,选择货到付款时无法使用优惠卡和礼品卡\r\n      </p>\r\n    </div>\r\n  </div>\r\n</div>");


	templateBuilder.Append("\r\n<!--/right-->\r\n      </div>\r\n    </div>\r\n    \r\n  </div>\r\n \r\n\r\n\r\n <script src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/js/jquery.simpletip-1.3.1.min.js\"></");
	templateBuilder.Append("script>\r\n\r\n <script src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/js/jquery.ui.datepicker.js\"></");
	templateBuilder.Append("script>\r\n<script src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/js/jquery.ui.datepicker-zh-TW.js\"></");
	templateBuilder.Append("script>\r\n<script type=\"text/javascript\">\r\n    $(function () {\r\n\r\n        $('.tip').tipsy();\r\n\r\n   \r\n\r\n    });\r\n</");
	templateBuilder.Append("script>\r\n<script type=\"text/javascript\" src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/js/cart1.js\"></");
	templateBuilder.Append("script>\r\n  <script type=\"text/javascript\" src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/js/json2.js\"></");
	templateBuilder.Append("script>  \r\n  <script type=\"text/javascript\">\r\n		    var starti = 3;\r\n		    var currDT;\r\n		    var aryDay = new Array(\"日\", \"一\", \"二\", \"三\", \"四\", \"五\", \"六\"); //显示星期  \r\n		    var lastDay; //页面显示的最后一天\r\n		    var firstDay; //页面显示的第一天\r\n		    //初始化日期加载\r\n		    function initDate(myDates) {\r\n		        currDT = myDates;\r\n		        tempDate = myDates;\r\n		        minDatetime = new Date();\r\n		        minDatetime.setDate(minDatetime.getDate() + 2);\r\n		       \r\n		        setcontent(\"a\");\r\n		        \r\n		        //重新赋值\r\n		        lastDay = getDays()[13]; //本周的最后一天\r\n		        firstDay = getDays()[0]; //本周的第一天\r\n\r\n		    }\r\n		    //取得当前日期两周内的某天\r\n		    function getWeek(i) {\r\n		        var now = tempDate;\r\n		        var n = now.getDay();\r\n		        var start = new Date(tempDate);\r\n		        n = n == 0 ? 7 : n;\r\n		        start.setDate(now.getDate() - n + i); //取得一周内的第一天、第二天、第三天...\r\n		        return start;\r\n		    }\r\n\r\n		    //取得当前日期两周内的14天\r\n		    function getDays() {\r\n		        var days = new Array();\r\n		        for (var i = 0; i <= 14; i++) {\r\n		            days[i - 1] = getWeek(i);\r\n		        }\r\n		        return days;\r\n		    }\r\n\r\n		    //取得下两周的日期数(共14天)\r\n		    function getNextWeekDatas(ndt) {\r\n		        var days = new Array();\r\n		        for (var i = 1; i <= 14; i++) {\r\n		            var dt = new Date(ndt);\r\n		            days[i - 1] = getNextWeek(dt, i);\r\n		        }\r\n		        return days;\r\n		    }\r\n		 \r\n		    //指定日期的下两周(后14天)\r\n		    function getNextWeek(dt, i) {\r\n		        var today = dt;\r\n		        today.setDate(today.getDate() + i);\r\n		        return today;\r\n		    }\r\n\r\n\r\n		    //取得上两周的日期数(共14天)\r\n		    function getPreviousWeekDatas(ndt) {\r\n		        var days = new Array();\r\n		        for (var i = -14; i <= -1; i++) {\r\n		            var dt = new Date(ndt);\r\n		            days[14 + i] = getPreviousWeek(dt, i);\r\n		        }\r\n		        return days;\r\n		    }\r\n\r\n		    //指定日期的上两周(前14天)\r\n		    function getPreviousWeek(dt, i) {\r\n		        var today = dt;\r\n		        today.setDate(today.getDate() + i);\r\n		        return today;\r\n		    }\r\n\r\n		    //下两周\r\n		    function nextWeek() {\r\n		        currDT.setDate(currDT.getDate() + 14); //重设时间\r\n		        setcontent(\"b\");\r\n		        firstDay = getNextWeekDatas(lastDay)[0]; //注意赋值顺序1\r\n		        lastDay = getNextWeekDatas(lastDay)[13]; //注意赋值顺序2\r\n		    }\r\n		\r\n		     Data = [];\r\n           \r\n		    var type = ");
	templateBuilder.Append(id.ToString());

	templateBuilder.Append("; //类别\r\n            ");
	DataTable goods_list = get_article_list("goods", 0, 10, "id="+id, "id desc");

	templateBuilder.Append("\r\nvar plist=[");
	int dr__loop__id=0;
	foreach(DataRow dr in goods_list.Rows)
	{
		dr__loop__id++;


	templateBuilder.Append("{ \"id\": " + Utils.ObjectToStr(dr["id"]) + ",\"q\": 1,\"j\":" + Utils.ObjectToStr(dr["sell_price"]) + "}");
	if (dr__loop__id!=goods_list.Rows.Count)
	{

	templateBuilder.Append(",");
	}	//end for if

	}	//end for if

	templateBuilder.Append("];\r\n          \r\n		    function setcontent(Days) {\r\n		        if (Days == \"a\") {\r\n\r\n                var order_amount=0;\r\n		            var d = new Date(currDT);\r\n\r\n		            Data.length = 0;\r\n		            for (var j = 0; j < starti; j++) {\r\n\r\n		                s = j == 0 ? 0 : 1;\r\n\r\n Data.push({ \"id\": j, g: [], \"e\": d.setDate(d.getDate() +s), \"t\": type ,\"a\":0,\"s\":0});\r\n                       \r\n		                for (var h = 0; h < plist.length; h++) {\r\n		                    Data[j].g.push(plist[h]);\r\n                            order_amount=Number(order_amount+plist[h].j);\r\n		                }\r\n		            }\r\n                    \r\n                    $(\"#price\").text(order_amount)\r\n                    $(\"#price1\").text(order_amount)\r\n		        }\r\n                \r\n \r\n		        showdate.innerHTML = currDT.toLocaleDateString(); //显示日期  \r\n		        //在表格中显示一周的日期  \r\n		        var objTB = document.getElementById(\"mytable\"); //取得表格对象\r\n		        var dw = currDT.getDay(); //从Date对象返回一周中的某一天(0~6)\r\n		        var tdDT; //日期\r\n		        var $tr = $('<ul>');\r\n		        $('#mytable').empty();\r\n		        \r\n		        for (var i = 0; i < 14; i++) {\r\n		            if (Days == \"a\") {\r\n		                tdDT = getDays()[i];\r\n\r\n		            } else if (Days == \"b\") {\r\n		                tdDT = getNextWeekDatas(lastDay)[i];\r\n		            }\r\n		            else {\r\n		                tdDT = getPreviousWeekDatas(firstDay)[i];\r\n		            }\r\n		            if (i ==0) {\r\n		                if (minDatetime - tdDT > 0 || minDatetime.Format(\"yyyy-MM-dd\") == tdDT.Format(\"yyyy-MM-dd\")) {\r\n		                    $(\"#previousweek\").hide();\r\n		                }\r\n		                else {\r\n		                    $(\"#previousweek\").show();\r\n		                }\r\n		            }\r\n		            dw = tdDT.getDay(); //星期几\r\n\r\n		            if (minDatetime - tdDT < 0 || minDatetime.Format(\"yyyy-MM-dd\")==tdDT.Format(\"yyyy-MM-dd\")) {\r\n\r\n\r\n		                var itemst= jQuery.grep(\r\n                Data, function (item, index) { return new Date(parseInt(item.e, 10)).Format(\"yyyy-MM-dd\") == tdDT.Format(\"yyyy-MM-dd\"); });\r\n		                \r\n		                if (itemst.length>0) {\r\n var $td = $('<li>').html('<div class=\"time\"><span class=\"week\">周'+aryDay[dw]+'</span><span class=\"day\">'+(tdDT.getMonth()+1)+'/'+tdDT.getDate()+'</span></div>').addClass(\"selected\");\r\n var $add=$('<div class=\"add\"><img src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/images/date_bottle.png\"><p></p></div>');\r\n $td.append($add);\r\n                            \r\n//                            \"tdDT.getMonth() + 1 + \"/\" + tdDT.getDate() + \"\" + aryDay[dw] + \"6瓶id:\" + itemst[0].id);\r\n		                }\r\n		                else {\r\n var $td =$('<li>').html('<div class=\"time\"><span class=\"week\">周'+aryDay[dw]+'</span><span class=\"day\">'+(tdDT.getMonth()+1)+'/'+tdDT.getDate()+'</span></div>');\r\n var $add=$('<div class=\"empty\"></div>');\r\n $td.append($add);\r\n		                }\r\n\r\n		                //   \r\n\r\n		                $tr.append($td);\r\n\r\n\r\n		                //objTB.rows[0].cells[i].style.color = \"red\";//currDT突出显示  \r\n		            }\r\n		            else {\r\n		              var $td =$('<li>').html('<div class=\"time\"><span class=\"week\">周'+aryDay[dw]+'</span><span class=\"day\">'+(tdDT.getMonth()+1)+'/'+tdDT.getDate()+'</span></div>');\r\n                       var $add=$('<div class=\"empty\"></div>');\r\n $td.append($add);\r\n\r\n \r\n\r\n		            }\r\n                      $tr.append($td);\r\n		        }\r\n		        $(\"#mytable\").append($tr);\r\n\r\n		    }\r\n		    Date.prototype.Format = function (fmt) { //author: meizz \r\n		        var o = {\r\n		            \"M+\": this.getMonth() + 1, //月份 \r\n		            \"d+\": this.getDate(), //日 \r\n		            \"h+\": this.getHours(), //小时 \r\n		            \"m+\": this.getMinutes(), //分 \r\n		            \"s+\": this.getSeconds(), //秒 \r\n		            \"q+\": Math.floor((this.getMonth() + 3) / 3), //季度 \r\n		            \"S\": this.getMilliseconds() //毫秒 \r\n		        };\r\n		        if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + \"\").substr(4 - RegExp.$1.length));\r\n		        for (var k in o)\r\n		            if (new RegExp(\"(\" + k + \")\").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : ((\"00\" + o[k]).substr((\"\" + o[k]).length)));\r\n		        return fmt;\r\n		    }\r\n		    \r\n		    //上一周\r\n		    function previousWeek() {\r\n		        currDT.setDate(currDT.getDate() - 14);\r\n		        setcontent(\"c\");\r\n		        //重新赋值\r\n		        lastDay = getPreviousWeekDatas(firstDay)[13]; //注意赋值顺序1\r\n		        firstDay = getPreviousWeekDatas(firstDay)[0]; //注意赋值顺序2\r\n		    }\r\n            var dateall=[];\r\nfunction dateadd(date,i)\r\n{\r\nfor(var j=0; j<i;j++) {\r\n    dateall.push(new  Date(date.setDate(date.getDate() + 1)));\r\n}\r\n}\r\nfunction tests(datep,type,i) {\r\n    \r\n    var setdate = new Date();\r\n    setdate.setFullYear(2014, 3, 6);\r\n\r\n    dateadd(setdate, 2+i);\r\n    if(type==3)\r\n    {\r\n    setdate.setFullYear(2014, 3, 29);\r\n    }else\r\n    {\r\n     setdate.setFullYear(2014, 3, 30);\r\n    }\r\n    dateadd(setdate, 3+i);\r\n    if(type==3)\r\n    {\r\n    setdate.setFullYear(2014, 4, 30);\r\n    }else\r\n    {\r\n    setdate.setFullYear(2014, 4, 31);\r\n    }\r\n    dateadd(setdate, 3+i);\r\n    if(type==3)\r\n    {\r\n    setdate.setFullYear(2014, 8, 5);\r\n    }else\r\n    {\r\n      setdate.setFullYear(2014, 8, 6);\r\n    }\r\n    dateadd(setdate, 3+i);\r\n    if(type==3)\r\n    {\r\n    setdate.setFullYear(2014, 8, 30);\r\n    }else\r\n    {\r\n    setdate.setFullYear(2014, 9, 1);\r\n    }\r\n    dateadd(setdate, 7+i);\r\n   \r\n    for (var i=0; i<dateall.length; i++)\r\n    {\r\n        if (new Date(dateall[i]).Format(\"yyyy-MM-dd\") == datep.Format(\"yyyy-MM-dd\")) {\r\n            return true;\r\n        }\r\n       \r\n       // alert(new Date(dateall[i]).Format(\"yyyy-MM-dd\"));\r\n\r\n    }\r\n    return false;\r\n}\r\nfunction selectedDate(date, type, i) {\r\n\r\n\r\n\r\n    var d = date.getDay();\r\n    var ret=[true,'hasCourse'];\r\n    if (tests(date, type, i)) {\r\n        ret = [false, 'noCourse'];\r\n    }\r\n    if (type == 3) {\r\n        if (d == 0 || d == 6 || d == 5 || d == 1) {\r\n            ret = [false, 'noCourse'];\r\n\r\n        }\r\n    }\r\n    else {\r\n        if (d == 0 || d == 1) {\r\n            ret = [false, 'noCourse'];\r\n\r\n        }\r\n        \r\n    }\r\n\r\n\r\n    return ret;\r\n}\r\n</");
	templateBuilder.Append("script>   \r\n	<script  type=\"text/javascript\">\r\n	    $(function () {\r\n	        var myDate = new Date();\r\n	        if (new Date().getHours() < 12) {\r\n	            myDate.setDate(myDate.getDate() + 2);\r\n	        }\r\n	        else {\r\n	            myDate.setDate(myDate.getDate() + 3);\r\n	        }\r\n	        $(\"#datepicker\").datepicker({ \"minDate\": myDate,\r\n	            showOtherMonths: true,\r\n	            selectOtherMonths: true,\r\n	            onSelect: function (selectedDate) {\r\n	                initDate(new Date(selectedDate));\r\n	            },\r\n	            beforeShowDay: function (date) {\r\n	               return selectedDate(date, starti, 0);\r\n	            }\r\n	        });\r\n\r\n	        initDate(myDate);\r\n	    });\r\n	    function test(v) {\r\n	        var myDate = new Date();\r\n	        if (new Date().getHours() < 12) {\r\n	            myDate.setDate(myDate.getDate() + 2);\r\n	        }\r\n	        else {\r\n	            myDate.setDate(myDate.getDate() + 3);\r\n	        }\r\n	        starti = v;\r\n	        $(\"#datepicker\").remove();\r\n	        $(\"#datepicker\").datepicker({ \"minDate\": myDate,\r\n	            showOtherMonths: true,\r\n	            selectOtherMonths: true,\r\n	            onSelect: function (selectedDate) {\r\n	                initDate(new Date(selectedDate));\r\n	            },\r\n	            beforeShowDay: function (date) {\r\n	                return selectedDate(date, starti, 0);\r\n	            }\r\n	        });\r\n	        initDate(currDT);\r\n	    }\r\n	</");
	templateBuilder.Append("script>\r\n\r\n\r\n\r\n\r\n\r\n     \r\n \r\n<!--Footer-->\r\n");

	templateBuilder.Append(" <div id=\"footer_modules\">\r\n ");
	if (indexv==1)
	{

	templateBuilder.Append("\r\n <div class=\"ind_news\">\r\n <style>\r\n\r\n  .focus_tab{margin:4px auto 0;position:relative;  }\r\n  .focusPic{width:708px;overflow:hidden; margin-left: auto;\r\nmargin-right: auto;}\r\n\r\n\r\n\r\n.sidePic{float:right;list-style:none;}\r\n .sidePic li{\r\n	 width:21px;text-align:center;height:24px;line-height:26px;float:left;margin-right:7px;color:#2B2B2B; background: cursor:pointer;\r\n }\r\n.focus_tab .normal{float:left;margin-right:10px;}\r\n  </style>\r\n     <div id=\"s\"  class=\"focusPic\">\r\n        <div id=\"noticeList\" class=\"focus_tab\">\r\n          ");
	DataTable category_list2 = get_article_list("news", 39, 10, "status=0", "click desc,id desc");

	int cdr2__loop__id=0;
	foreach(DataRow cdr2 in category_list2.Rows)
	{
		cdr2__loop__id++;


	templateBuilder.Append("\r\n          <span class=\"normal\">" + Utils.ObjectToStr(cdr2["content"]) + "</span>\r\n          ");
	}	//end for if

	templateBuilder.Append("\r\n        </div>\r\n     </div>\r\n          \r\n  	 <div><a class=\"btn\" href=\"");
	templateBuilder.Append(linkurl("goods"));

	templateBuilder.Append("\">选择您的排毒计划</a> </div>\r\n  </div>\r\n\r\n<script type=\"text/javascript\">\r\n\r\n $(function(){\r\n	var itemWidth=$(\".focus_tab > .normal\").width()+10;\r\n	var sumWidth=itemWidth*$(\".focus_tab > .normal\").length;\r\n	var temp=$(\".focus_tab > div\").clone();\r\n	temp.appendTo(\".focus_tab\");\r\n	$(\".focus_tab\").width(sumWidth*2);\r\n	var i=0;\r\n	setInterval(play,18);\r\n	function play(){\r\n		//$(\".focus_tab\").offset({left:i,top:$(\".focus_tab\").offset().top});\r\n		$(\".focus_tab\").css(\"left\",i)\r\n		i-=1;\r\n		//if(Math.abs($(\".focus_tab\").offset().left)>=sumWidth)\r\n		if(Math.abs(parseInt($(\".focus_tab\").css(\"left\")))>=sumWidth){\r\n			i=0;\r\n		}\r\n	}\r\n });\r\n\r\n    	   \r\n	</");
	templateBuilder.Append("script>\r\n    ");
	}	//end for if

	templateBuilder.Append("\r\n   <script type=\"text/javascript\" src=\"");
	templateBuilder.Append(Utils.ObjectToStr(config.webpath));
	templateBuilder.Append("scripts/lhgdialog/lhgdialog.js?skin=idialog_1\">\r\n      </");
	templateBuilder.Append("script>\r\n      <script type=\"text/javascript\">\r\n       //放大图片\r\n       $(function () {\r\n           \r\n           $(\".imgtip\").click(function (e) {\r\n              \r\n               var dialog = $.dialog({\r\n                   title: '查看二维码',\r\n                   content: \"<img src='");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/images/weixin-01.jpg' />\",\r\n                   min: false,\r\n                   max: false,\r\n                  lock: true,\r\n                   width: 200,\r\n                   height: 200\r\n               });\r\n           });\r\n         \r\n       });\r\n       function divshow(str)\r\n       {\r\n        \r\n              \r\n               var dialog = $.dialog({\r\n                   title: str,\r\n                   content: \"<div class='layer_giftCard'><div class='gc_right_con'> <p>\"+str+\"敬请期待</p></div></div> \",\r\n                   min: false,\r\n                   max: false,\r\n                  lock: true,\r\n                   width: 200,\r\n                   height: 100\r\n               });\r\n          \r\n       }\r\n</");
	templateBuilder.Append("script>\r\n  <script>\r\n                function submitTest() {\r\n                    if ($(\"#pad\").val() == \"\")\r\n                    { return false; }\r\n                    else {\r\n                        location.href = 'feedback.aspx?con=' + $('#pad').val();\r\n                        //return true;\r\n                    }\r\n                }\r\n</");
	templateBuilder.Append("script>\r\n    <div class=\"social\">\r\n      <div class=\"socialWrapper\">\r\n      <a href=\"http://weibo.com/juiceupcleanse\"><img src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/images/sinaIcon.png\" /><em>官方微博</em></a>\r\n      <a href=\"javascript:void(0);\" class=\"imgtip\"><img src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/images/wxIocn.png\" /><em>官方微信</em></a>\r\n      <a href=\"javascript:void(0);\"  onclick=\"divshow('官方微视')\"><img src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/images/wsIcon.png\" /><em>官方微视</em></a>\r\n      <a href=\"javascript:void(0);\"  onclick=\"divshow('密友分享')\"><img src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/images/myIcon.png\" /><em>密友分享</em></a>\r\n      <a href=\"javascript:void(0);\"  onclick=\"divshow('Instagram')\"><img src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/images/instagramIcon.png\" /><em>Instagram</em></a>\r\n      </div>\r\n    </div>\r\n    <div class=\"footer_con\">\r\n      <div class=\"center_wrapper\">\r\n        <div class=\"inner\">\r\n          <div class=\"inner_list\">\r\n            <h2><a href=\"#footer1\">清体排毒</a></h2>\r\n            <ul id=\"footer1\">\r\n            <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",113));

	templateBuilder.Append("\"> 什么是毒素</a></li>\r\n           <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",112));

	templateBuilder.Append("\">我需要排毒么</a></li>\r\n             \r\n            </ul>\r\n          </div>\r\n          <div class=\"inner_list\">\r\n            <h2><a href=\"#footer2\">JuiceUp</a></h2>\r\n            <ul id=\"footer2\">\r\n              <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",110));

	templateBuilder.Append("\">最专业的JuiceUp</a></li>\r\n\r\n              <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",111));

	templateBuilder.Append("\">果汁餐单</a></li>\r\n                <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",122));

	templateBuilder.Append("\">冷压技术</a></li>\r\n              <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",126));

	templateBuilder.Append("\">温馨提示</a></li>\r\n            </ul>\r\n          </div>\r\n          <div class=\"inner_list\">\r\n            <h2><a href=\"#footer3\">选择您的果汁</a></h2>\r\n            <ul id=\"footer3\">\r\n          <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",114));

	templateBuilder.Append("\">level1美味纤体系列</a></li>\r\n              <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",115));

	templateBuilder.Append("\">level2深层清体系列</a></li>\r\n             \r\n              \r\n             <!-- <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",117));

	templateBuilder.Append("\">个性化搭配</a></li>-->\r\n              <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",123));

	templateBuilder.Append("\">在线测试</a></li>\r\n            </ul>\r\n          </div>\r\n          <div class=\"inner_list\">\r\n            <h2><a href=\"#footer4\">价格及配送</a></h2>\r\n            <ul id=\"footer4\">\r\n              <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",119));

	templateBuilder.Append("\">价格&优惠</a></li>\r\n              <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",121));

	templateBuilder.Append("\">物流配送</a></li>\r\n              <li><a href=\"");
	templateBuilder.Append(linkurl("contentshow",120));

	templateBuilder.Append("\">订购须知</a></li>\r\n            </ul>\r\n          </div>\r\n          <ul class=\"inner_contact\">\r\n            <h2><a href=\"");
	templateBuilder.Append(linkurl("feedback"));

	templateBuilder.Append("\">联系我们</a></h2>\r\n            <p class=\"tile\"><img src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/images/emailIcon.png\" />&nbsp;提交留言</p>\r\n            <p class=\"form_con\">\r\n              <input class=\"t_tet\" value=\"我感觉咱们产品\" id=\"pad\" type=\"text\"/>\r\n              <input class=\"t_button\" value=\"提交\" type=\"button\" onclick=\"submitTest();\"  />\r\n            </p>\r\n            <img src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/images/juiceUpCar.png\" />\r\n          </ul>\r\n          <div class=\"footer_contact\">\r\n            <span class=\"tet\"><span class=\"inlineBlock\">CONTACT US</span>&nbsp;&nbsp;<span class=\"inlineBlock\"><a href=\"mailto:order@juiceupcleanse.com\">order@juiceupcleanse.com</a></span>&nbsp;&nbsp;<span class=\"inlineBlock\">  400-082-5955</span></span>\r\n            <span class=\"cp\">&copy; 2014 JuiceUpCleanse. All rights reserved. </span>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </div>\r\n  <!---->\r\n  <div class=\"go_top\">返回顶端</div>\r\n  <!---->\r\n</div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n<script type=\"text/javascript\" src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/js/juiceup.js\"></");
	templateBuilder.Append("script>\r\n<!-- include jQuery + carouFredSel plugin -->\r\n<script type=\"text/javascript\" src=\"");
	templateBuilder.Append("/templates/JuiceUp");
	templateBuilder.Append("/js/jquery.glide.min.js\"></");
	templateBuilder.Append("script>\r\n\r\n<script type=\"text/javascript\">\r\n ");
	if (indexv==1)
	{

	}
	else
	{

	templateBuilder.Append("\r\n    $('.slidejuice').glide({});\r\n    ");
	}	//end for if

	templateBuilder.Append("\r\n</");
	templateBuilder.Append("script>\r\n\r\n\r\n\r\n\r\n</body>\r\n</html>");


	templateBuilder.Append("\r\n<!--/Footer-->\r\n");
	Response.Write(templateBuilder.ToString());
}
</script>
